import request from "@/utils/request";
import { reqGetPictureParams, reqGetPictureData } from "./model";
// 获取图片列表
export const reqGetPicture = (data: reqGetPictureParams) => {
  return request<any, PageResult<reqGetPictureData[]>>({
    url: "/admin/getattachment",
    params: data,
  });
};

// 删除图片
export const reqDelPicture = (id: number | string) => {
  return request({
    url: "/admin/deletepicture",
    params: { id },
  });
};
